package com.shop.domain;

import java.util.Date;
import java.util.List;

/**
 * 商品类
 * 
 * @author wenjuanhenxing
 * @version V1.0 Goods.java 2016-2-9 上午7:36:06
 */
public class Goods {
	private Long id;

	/** 商品名 */
	private String name;

	/** 大的类别索引，reference TABLE category */
	private Integer largeCategory;

	/** 小的类别索引，reference TABLE category */
	private Integer smallCategory;

	/** 详细描述 */
	private String description;

	/** 图片src，包含多个src，以逗号分隔 */
	private String image;

	/** 价格 */
	private Double price;

	/** 成色，如9.3，8.5，7 成新 */
	private Double degree;

	/** 卖家用户名 */
	private String seller;

	/** 库存 */
	private Long stock;

	/** 最近更新时间 */
	private Date recentUpdate;

	/** 是否在架 */
	private Boolean onlineStatus;

	/** 被收藏数量 */
	private Long collectCnt;

	/** 交易方式，true线上，false线下 */
	private Boolean transactionMode;

	/** 交易地点 */
	private String transactionAddress;

	/** 评论 */
	private List<Comment> comments;

	public Goods() {

	}

	public Goods(String name, Integer largeCategory, Integer smallCategory,
			String description, Double price, Double degree, String seller,
			Long stock, Boolean transactionMode, String transactionAddress) {
		super();
		this.name = name;
		this.largeCategory = largeCategory;
		this.smallCategory = smallCategory;
		this.description = description;
		this.price = price;
		this.degree = degree;
		this.seller = seller;
		this.stock = stock;
		this.transactionMode = transactionMode;
		this.transactionAddress = transactionAddress;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getLargeCategory() {
		return largeCategory;
	}

	public void setLargeCategory(Integer largeCategory) {
		this.largeCategory = largeCategory;
	}

	public Integer getSmallCategory() {
		return smallCategory;
	}

	public void setSmallCategory(Integer smallCategory) {
		this.smallCategory = smallCategory;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String desciption) {
		this.description = desciption;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getDegree() {
		return degree;
	}

	public void setDegree(Double degree) {
		this.degree = degree;
	}

	public String getSeller() {
		return seller;
	}

	public void setSeller(String seller) {
		this.seller = seller;
	}

	public Long getStock() {
		return stock;
	}

	public void setStock(Long stock) {
		this.stock = stock;
	}

	public Date getRecentUpdate() {
		return recentUpdate;
	}

	public void setRecentUpdate(Date recentUpdate) {
		this.recentUpdate = recentUpdate;
	}

	public Boolean getOnlineStatus() {
		return onlineStatus;
	}

	public void setOnlineStatus(Boolean onlineStatus) {
		this.onlineStatus = onlineStatus;
	}

	public Long getCollectCnt() {
		return collectCnt;
	}

	public void setCollectCnt(Long collectCnt) {
		this.collectCnt = collectCnt;
	}

	public Boolean getTransactionMode() {
		return transactionMode;
	}

	public void setTransactionMode(Boolean transactionMode) {
		this.transactionMode = transactionMode;
	}

	public String getTransactionAddress() {
		return transactionAddress;
	}

	public void setTransactionAddress(String transactionAddress) {
		this.transactionAddress = transactionAddress;
	}

	public List<Comment> getComments() {
		return comments;
	}

	public void setComments(List<Comment> comments) {
		this.comments = comments;
	}

}
